#ifndef _BASE_HEADER_
#define _BASE_HEADER_

#include <string>
#include <list>
#include <time.h>
#include <SDL.h>
#include "SceneObject.h"

using namespace std;

namespace Engine{
	enum errorType{
		TYPE_INFO = 0,
		TYPE_WARNING,
		TYPE_ERROR,
		TYPE_FATAL
	};
	static bool devMode = true;
	extern string programName;
	void ThrowError(string msg);
	void QuitProgram();
	void ForceQuit();
	void LoadControls();
	void LogError(string error, errorType type);

	void DoDraw();
	void DoThink();
	void PollEvents(SDL_Event* kevent);
};

#endif // _BASE_HEADER_